package com.heliang.dataaccess.bean;

import java.io.Serializable;

import net.tsz.afinal.annotation.sqlite.Id;

/**
 * 资讯信息实体类
 * @author hhq163
 */
public class InfoBean implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 资讯ID
     */
    @Id(column="id")
    private int id;
    
    private int infoId;
    
    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }

    /**
     * 会员ID
     */
    private int userId;// 会员id

    /**
     * 收藏ID
     */
    private int favoId;

    /**
     * 资讯类别 用来区分首页和非首页资讯 1：首页 0：非首页
     */
    private int type;

    /**
     * 分类ID
     */
    private int catId;

    /**
     * 标题
     */
    private String title;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 资讯描述
     */
    private String content;

    /**
     * 连接
     */
    private String url;

    /**
     * 评论数
     */
    private int commentCount;

    /**
     * 服务端创建时间
     */
    private long created;

    /**
     * 更新时间 用于排序
     */
    private long updateTime;

    /**
     * 缩略图地址
     */
    private String pic1Url;

    /**
     * 缩略图本地地址
     */
    private String pic1Path;

    /**
     * 缩略图地址
     */
    private String pic2Url;

    /**
     * 缩略图本地地址
     */
    private String pic2Path;

    /**
     * 是否已读
     */
    private boolean isRead;

    /**
     * 是否为头条
     */
    private boolean isFirstNews;

    /**
     * 是否为推荐,推送消息就是推荐消息
     */
    private boolean isRecommend;

    /**
     * 是否显示 true：是 false：否
     */
    private boolean status;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getPic1Url() {
        return pic1Url;
    }

    public void setPic1Url(String pic1Url) {
        this.pic1Url = pic1Url;
    }

    public String getPic1Path() {
        return pic1Path;
    }

    public void setPic1Path(String pic1Path) {
        this.pic1Path = pic1Path;
    }

    public String getPic2Url() {
        return pic2Url;
    }

    public void setPic2Url(String pic2Url) {
        this.pic2Url = pic2Url;
    }

    public String getPic2Path() {
        return pic2Path;
    }

    public void setPic2Path(String pic2Path) {
        this.pic2Path = pic2Path;
    }

    public int getCatId() {
        return catId;
    }

    public void setCatId(int catId) {
        this.catId = catId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public long getCreated() {
        return created;
    }

    public void setCreated(long created) {
        this.created = created;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean isRead) {
        this.isRead = isRead;
    }

    public boolean isRecommend() {
        return isRecommend;
    }

    public void setRecommend(boolean isRecommend) {
        this.isRecommend = isRecommend;
    }

    public boolean isFirstNews() {
        return isFirstNews;
    }

    public void setFirstNews(boolean isFirstNews) {
        this.isFirstNews = isFirstNews;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public int getFavoId() {
        return favoId;
    }

    public void setFavoId(int favoId) {
        this.favoId = favoId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

}
